<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MAIL->Disconnect()</title>
<style>
body, pre {
	font-family: Verdana;
	font-size: 10pt;
}
a {	color: blue; text-decoration: none }
a:hover { text-decoration: underline }
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

<pre>
<hr color="white">
MAIL -> <i>boolean</i> <b>disconnect</b> ( [ <i>resource</i> connection ] )
<hr>
Return TRUE if has been successfully disconnected, FALSE if not.

Send "QUIT" SMTP command and close <i>resource</i> connection(s).

If <i>resource</i> connection is not provided will disconnect all open connections.

Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
$m = new MAIL;

// first connection
$c1 = $m->Connect('smtp.hostname1.tld');
// second connection
$c2 = $m->Connect('smtp.hostname2.tld');

// disconnect first connection
$m->Disconnect($c1);

// or, disconnect all open connections
$m->Disconnect();
</code></pre>
</td></tr>
</table>

<hr color="white">

See Also: <a href="connect.html">MAIL->Connect()</a>, <a href="../smtp/disconnect.html">SMTP::Disconnect()</a>

[ <a href="mail&#116;&#111;:contact&#064;xpertmailer.com?subject=Comment MAIL Disconnect">Comments</a> ]

Last update: Saturday, June 16, 2007

<hr>
</pre>

</body>
</html>